package cn.kgc.client;

import cn.kgc.base.dto.UmsRoleDTO;
import cn.kgc.commons.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @Date: 2022年12月08日9:42
 */
@FeignClient(value = "mall-ums",path = "/ums/role",fallback = UmsRoleFeignClientImpl.class)
public interface UmsRoleFeignClient {
        @GetMapping("/getRole")
        Result<List<UmsRoleDTO>>   getUmsRole(@RequestParam(name = "memberId") long memberId);
}
